package com.yungu.swift.system.sys.dao;

import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.system.sys.model.dto.SysWayFenceDto;
import com.yungu.swift.system.sys.model.vo.WayfenceInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 拼车围栏设置
 */
public interface SysWayFenceMapper extends IMapper<SysWayFenceDto> {

    /**
     * 批量新增
     * @param list
     * @return
     */
    int addBatch(@Param("fenceList")List<SysWayFenceDto> list);

    /**
     * 通过线路ID批量删除
     * @param WayUuid
     * @return
     */
    int delByWayUuid(@Param("wayUuid")String WayUuid);

    /**
     * 查询围栏信息
     */
    List<WayfenceInfoVo> queryWayFenceInfo(@Param("wayUuid")String WayUuid);

}